<template>
	<div class="page">
		<c-title :hide="false" text="体检报告详情"></c-title>
		<div class="item">
			<div class="label">
				体检名称：
			</div>
			<div class="val">
				{{data.name}}
			</div>
		</div>
		<div class="item">
			<div class="label">
				体检内容：
			</div>
			<div class="val">
				{{data.content}}
			</div>
		</div>
		<div class="item">
			<div class="label">
				体检时间：
			</div>
			<div class="val">
				{{data.time}}
			</div>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				id:'',
				data:{}
			}
		},
		activated() {
			this.id = this.$route.query.id
			$http
				.post("plugin.hft-hospital.api.jiankang.get-tijian-one-data", {
					id:this.id
				})
				.then(response => {
					console.log(response)
					if (response.result === 1) {
						this.data = response.data
						
					} else {
						Toast(response.msg);
					}
				})
				.catch(error => {
					console.log(error);
				});
		},
		
	}
</script>

<style scoped lang="scss">
	.page{
		.item{
			display: flex;
			background-color: #fff;
			padding: 0.5rem;
		}
	}
</style>